package com.yb.guigu.pick.auth.bean.dto.response;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yb.guigu.pick.auth.entity.SysUser;
import com.yb.guigu.pick.core.constant.DateTimeConstant;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * Copyright (C), 2022-2023, 姚兵
 * Author: 32210
 * Date: 2023/5/30 18:55
 * FileName: SysUserDTO
 * Description:
 */

@Data
public class SysUserCreateDTO {

    @ApiModelProperty("主键")
    private Integer id;

    @ApiModelProperty("系统分配")
    private Integer userId;

    @ApiModelProperty(" 用户名")
    private String username;


    @ApiModelProperty(" 真实姓名")
    private String realname;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("加密方式 1 Bcrpt")
    private String encryptedType;

    @ApiModelProperty(" email")
    private String email;


    @ApiModelProperty(" phone")
    private String phone;

    @ApiModelProperty(" avatar")
    private String avatar;


    @ApiModelProperty("是否启用 0 未启用 1 启用")
    private Integer enabled;

    @TableField("account_non_expired")
    private Integer accountNonExpired;

    @ApiModelProperty("是否被锁定 0 被锁定 1 未被锁定")
    private Integer accountNonLocked;

    @ApiModelProperty("密码是否过期 0 过期 1未过期")
    private Integer credentialsNonExpired;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = DateTimeConstant.DASH_PATTERN_DATETIME,timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = DateTimeConstant.DASH_PATTERN_DATETIME,timezone = "GMT+8")
    private LocalDateTime updateTime;

    public SysUserCreateDTO(){

    }

    public SysUserCreateDTO(SysUser sysUser){

    }
}
